package com.yb.flowable.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * Description:flowable封装用户参数的类
 * @author biaoyang
 * date 2019/3/15 001510:01
 */
@Setter
@Getter
@ApiModel(description = "flowable封装用户参数的类")
public class FlowableUser {

    @ApiModelProperty("用户名")
    @NotBlank(message = "用户名不能为空")
    @Length(max = 20,message = "用户名不能超过20字")
    private String username;

    @ApiModelProperty("密码")
    @NotBlank(message = "用户密码不能为空")
    @Length(max = 20,message = "用户密码不能超过20字")
    private String password;

    @ApiModelProperty("用户(所属)组")
    @Length(max = 20,message = "用户组不能超过20字")
    private String groupName;

}
